package com.yiyahui.framework.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "aliyun.sts") //prefix 中不能出现大写
public class AliSTSPropertis {

     private String endPoint;
     //阿里云API的密钥Access Key ID
     private String accessKeyId;
     //阿里云API的密钥Access Key Secret
     private String accessKeySecret;
     //阿里云OSS角色
     private String OSSroleArn;

     private String roleSessionName = "external-username";
 
     public String getAccessKeyId() {
         return accessKeyId;
     }
 
     public void setAccessKeyId(String accessKeyId) {
         this.accessKeyId = accessKeyId;
     }
 
     public String getAccessKeySecret() {
         return accessKeySecret;
     }
 
     public void setAccessKeySecret(String accessKeySecret) {
         this.accessKeySecret = accessKeySecret;
     }
 
     public String getOSSRoleArn() {
         return OSSroleArn;
     }
 
     public String getEndPoint() {
         return endPoint;
     }
 
     public void setEndPoint(String endPoint) {
         this.endPoint = endPoint;
     }
 
     public void setOSSRoleArn(String roleArn) {
         this.OSSroleArn = roleArn;
     }

     public String getRoleSessionName() {
         return roleSessionName;
     }

     public void setRoleSessionName(String roleSessionName) {
         this.roleSessionName = roleSessionName;
     }
}